package com.example.ai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.ai.entity.InterviewAnswer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * AI面试答案Mapper接口
 * 用于查询面试答案数据
 */
@Mapper
public interface AiInterviewAnswerMapper extends BaseMapper<InterviewAnswer> {
    
    /**
     * 根据候选人ID查询所有面试答案
     * @param candidateId 候选人ID
     * @return 面试答案列表
     */
    @Select("SELECT * FROM interview_answer WHERE candidate_id = #{candidateId} ORDER BY create_time")
    List<InterviewAnswer> selectByCandidateId(Integer candidateId);
} 